package com.Iconcat.system.service.impl;

import com.Iconcat.system.entity.CatMenu;
import com.Iconcat.system.mapper.CatMenuMapper;
import com.Iconcat.system.service.CatMenuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zzq
 * @since 2023-11-19
 */
@Service
public class CatMenuServiceImpl extends ServiceImpl<CatMenuMapper, CatMenu> implements CatMenuService {

    @Resource CatMenuMapper catMenuMapper;

    @Override
    public List<CatMenu> getPermissionsByAdminId(Integer adminId) {
        return catMenuMapper.selectPermissionsByAdminId(adminId);
    }
}
